package com.jwell.panprovider.contract

import com.jwell.cargoapp.ui.base.IBaseView
import com.jwell.driverapp.tools.BaseSubscriber
import com.jwell.panprovider.entity.ElectronicePoundBean
import com.jwell.panprovider.model.ElectronicPoundModel

/**
 * Created by 76577 on 2018/4/8.
 * 电子磅单查询
 */
class ElectronicPoundContract {
    interface View : IBaseView {
        fun showListData(data: List<ElectronicePoundBean>, isFresh: Boolean)

        fun showListDataFailed(isFresh: Boolean, str: String)

        //显示搜索总条数
        fun setSearchTotalCount(count: Int)

    }

    interface Presenter {

        fun searchListData(searchData: ElectronicPoundModel.RequestData)

        //获取所有计量点
        fun getMeasurePlaceList()
    }

    interface Model {

        fun searchListData(searchData: ElectronicPoundModel.RequestData, baseSubscriber: BaseSubscriber)

        fun getMeasurePlaceList(baseSubscriber: BaseSubscriber)
    }
}